{% extends 'layout.html' %}
{% block conmet %}
<div class="container">
        <div class="panel panel-default">
          <div class="panel-heading">
            <h3 class="panel-title">添加用户</h3>
          </div>
            <div style="margin: 20px">
              <form method="post" novalidate>
                  {% csrf_token %}
                  {% for filder in form %}
                      <div class="form-group">
                        <label for="exampleInputEmail1"> {{ filder.label }} </label>
                        {{ filder}}
                        <span style="color: red">{{ filder.errors.0 }}</span>
                      </div>
                  {% endfor %}

                  <button type="submit" class="btn btn-success">添加</button>
              </form>
            </div>
        </div>
    </div>
{% endblock %}